added random seeding of clusters
fixed some stuff