Added javadoc to Main