Make scala, java kmeans less verbose.
Also update the text to match the given templates.