Added main
Fixed SensorObserver bug