Removed speed average-code. Reimplement (and lower sensor timeout) if needed. See #6. Also fixed some whitespace.