cleanup of arccosSafe, added quaternion functions to transforms