bug fixes + added new config parameter for the accelerometer to control the hardware sampling rate