fix a bug with with a large poll interval
update documentation