Added some stdout messages to kmeans for testing.