refactored motionCaptureJointCalibration to work with any number of bodies