Various changes made to comply with altered implementation of accelerometer class