Changed default detector threshold
Reversed logic on pump pin
Added shell code for initial flush cycle