Adding several useful functions
Added rotation demo