Created an IMU class which combines the gyro and accelerometer to get the angles of orientation about the x and y axis.

I still need to add calibration code for the accelerometer. It throws off the long term accuracy.