Refactor API doc