Updated Main.java.

Now clear onCommand