Convert to g rather than an arbitrary unit for getAcceleration. Added getMagnitude.