More comments done.

Refactored the buttons in the GUI a bit. Got rid of some redundant code.