Fix Issue #6: Error on second run
Fixed Issue #9: Add button to copy sample source code to clipboard.