update api doc and some apis