Better comments and some more diagnostic messages to help with bug hunting.
Better comments and some more diagnostic messages to help with bug hunting.

Also changed a > to >= to make the polling interval precice to the second.

dilawar/moodle