Small tweak changes were made.
Made an Accelerometer class which represents the Accelerometer.