Add hide-on-click option (defaults to true)

Defaults to true if no option is set.

Fixes #4