added comment methods in main.java