Update Main.java

added comments