Finished implementation of the k-means clustering (with map and legend updates).
Still missing the possibility of choosing multiple attributes.