Adds some more doc comments

 - Fixes a bug in the polling feature
 - Adds doc comments to polling related functions
 - Adds doc comments to option setter functions
Merge pull request #87 from blabaere/master

Adds some more doc comments