defined structure for adding imu

- also added test