Update to lab5.c

Compiles and reads accelerometer properly!!