Add docs. Fix some code style problem. Refactoring module report.