Added documentation to the orientation handling code