Update imu.h

Separate magnetometer and accelerometer.