fixed pause/resume, added orientation data logging