1. fix local mode bug. 2. update the documents.