Accelerometer added

Added a simple example of the accelerometer