Added experimental rotation code

And commented some stuff for clarity.