changes to clustering
improvements to clustering plotting routine