added code for reading imu data