updated the api doc from the website