Update document and minor fix.