Write up kmeans documentation.