Fix and refine API doc