Restored KMeans class and setter methods.
Spark coding formatting.