add API document and fix some bugs

Signed-off-by: weichen <niweichen@chinamobile.com>
Change-Id: I6786189e98e43e0d0cb5936903ab773e35525348
3 files changed