update document and typos