Added configuration support for polling frequency.
Added documentation.