added center of mass calculation to volume calculator