Removed accelerometer code
removed compass code