Move gui code out of notebook

Closes #3
Merge pull request #7 from mwcraig/refactor-gui-code

Move gui code out of notebook