wip
Done. Reversed changes to kmeans. It is harder than I thought