Cleaned up sensor_class code and imu_class code