Minor fixes and added more sensor events.