Add documents of rule decorator and mappings of parameter -> id