fixed a couple of things, cleaned a couple of more things, plugged in distance measure - all for knn