Add shared libraries, cleanup

Got rid of _rx, _ry, _rz.