changes made ready for refactoring of stats scripts
some classification; seems to be largely junk though
kknn package didn't seem to work; implemented basic knn from scratch, passes sanity check for results