Adds an example tkinter script
Formats comments as proper docstrings.
Refactors the basic code to be generally better.

Also other stuff.
updates gitignore to ignore .pyc files