added javadoc comment for main