optimize doc
fix problems advised by zhengmh