Update gui.java

added comments