Refactoring of classes for performing recognition using values in csv
files; minor changes.