Modified Dynamics Files to be Quaternion-based