added accelerometer basics