Final Codes
Tweaked Accelerometer and typo fixed