Added accelerometer support, close #12