Commented and pep8 the GUI code