Correct poorly named variables.
Correct if and elif statements which are inefficient.
Add comments to events and the main GUI window.