Experiment with kmeans
Added log shortener. Subtle mods