Made acceleromter implementation

(hopefully)