Update Main.java

add comments