Fix issue

Fixes issue 15.
Added a dialog box to the demo.
Simple namespace the plugin's internal functions.