[code style] add class doc comment and replace and add function doc comment completed