Obstacle functions can now be negative. Fixed some style issues. Wrote updateSensors function.