Added accelerometer setup

      NOT TESTED