Accelerometer Class

Created the Accelerometer class that will significantly improve the
modularity of the program.