Tidied up a couple of lines in centroids() routine