Update Main.java

Added Javadoc documentation to the class.