fixed bugs, added settings, smoothed sensor data