added comments for Main.java