constructing library for auxiliary geometric (mainly) functions
added function to scale a rotation represented by a quaternion
some fix