added centroid, etc
added centroid, etc