renamed matrix to quaternion function and deleted static