Update Javadoc for main method