added IMU configuration and test code.