Refactoring, Config UI for setting out of bounds values and time. Implemented configurable handling of old sensor values. Bug fixes and refactoring.