Fixed a number of random compiler bugs
Added an example, fixed old examples, updated rotate in utility library.