update document
many small fixes