updated publish script
updated javadoc