Refactoring of k-means; Added comments for kmeans module