misc refine.

1. simplify api
2. update license and readme