moved pump_overun into funciton lower down - looks cleaner
made checkRW errors its own function to clean things up