[code style] add class doc comment and replace and add function doc comm...

...ent