fixes for last commit
stats more readable
stats utility functions
normalising negativity and stuff
refactoring trainandclassify
more refactoring