CHange the simpleaverage function to clear, from reset.
Rename several resets to hardReset
s/resetBaseline/clearBaseline/g
Another reset/clear/g
s/reset/clear/g