Added reconstruction error option to sparse coding stuff

Merged Olegs NIKISINS requested to merge rebase_branch into master

Merge request reports