Hysteresis check
add Long Timer
Long Timer added
Add Threshold with hysteresis
Code cleanup
Move helpers and stateless circuit to base
Change output pulses widths
Add new circuits
minor changes