Added some code so it now outputs the maximum that the accelerometer has been put through.