Added comments to the Main.java