DeviceMotionData renamed to MotionData. Implemented collecting orientation data.