cleanup, javadoc and licenses