added api call for calibrating accelerometer + test