Added onHide and onShow callbacks to be executed when window changes visibility
Add a slight pause in the example
Merge pull request #5 from DanH42/visibility

Added onHide and onShow callbacks to be executed when window changes visibility
add License file