Changed the calcCOM implementation to adress the arbitraty COM position problem.