Add euler class and an accessor for rotation. Fixes #2.