Kmeans cleanup