some cleanup, debugging kmeans