refine javadoc and add license

refine javadoc and add license