Changes from Nick and Andrew

accelerometer listener