fixed geometry header file
Minor bug fix in centroid calculation