update document and example