Centroids are now publicly accessible. Changed return type of kmeans() method to clusters. Changed return type of fromJSON() to this.