Working matrices

and cross-conversions to and from quaternion/transform