added comments in Main.java