Update Main.java

Add comments.