added calculation of min and max values for every feature. All classes are used for that. Plus minor edits