Accelerometer, gyroscope and magnetometer

Moved subj-related shit to a separate file