refact && add api usage to doc