Added quaternion integration and make quaternion multiplication inline