Improved some comments. Fixed bug setting criteria flags; needed to convert a column to a binary flag. Improvements to more closely match C++ standards such as assignment operators return a reference rather than a const reference.