fix generated code style & comment