refine javadoc and add apache license
Merge pull request #1 from kevinkong/master

refine javadoc and add license