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