Cleaned up and reformatted OrientationSensorReader