A few small changes to way output is written, eg for centroids.