Update Main.java

The main class the operate all the tool