refactor the code, round #1

Cleaned up the iteration structure; removed unused stuff; created m5
hash keys to find classifiers; general performance increases