Set up interrupt constants and added returnToStart method.
Added functionality to the getAcceleration method.