rotate() now returns the actual rotation.
license file added to root.