fixed visualization; prototyped more cluster functions