add rule to generate doc
del unnecessary comment