add some comments, remove unused file Main.java