API document update

API document update and small fixes