option documentation and event handling example
Merge pull request #1 from mdomi/documentation

better documentation