Kmeans cleanup

type check? if not, put a comment that its not needed