Added cleanup functions to the end of the files
Changed accel input direction, removed unused GPIO cleanup from part 1
Fixed syntax errors