cleaned up gyro class.