Accelerometer calibration

-added calibration loops
-added documentation