fix bug, copy code from advance, modify readme

Signed-off-by: Lujie Zhou <gao_lujie@live.cn>