correct calibration of device orientation (#5)
little fixes (made some variables local)
no need in the adding/removing of events to get the feature set