added command line args -p secs for polling, -r for reset

-r doesn’t work, though