Corrected Accelerometer Calibration

Updated calibration functions for accelerometer such that offsets now
correctly calibrate zero-g when reset while accelerometer is level &
stationary. Also corrected some typos.