reworked library for g++ compatibility, added accelerometer_readings/test_program for offline testing of accelerometer algorithms