removed k-means references and updated stuff based on julia work