Adding Java K-Means example
A few cosmetic changes for JavaKMeans