Deserved functionality of gui.py achieved. All that remains is nice design.