Added rotation routines, resolved #9