added center of mass and moment of inertia calculation.
added center of mass and moment of inertia calculation