Rest part of detailed commenting in gui.py