Minor changes in mainCentroid to make it runnable
Deleted auxiliar prints
Fixed test_centroid