Refactor Makefile
Refactor accelerometer code into a separate module