several updates

moving variables in cluster.cc to local
updating some print out values
store cluster result in object