script to generate javadoc
updated to cleanup after publish