update matrix definition simplified
Accel magnitude calced using np.linalg.norm