centroid works a little more

added code for find_center too