change some comments.

change some comments and change a field name "writingThread"