update code style document and function names