Add documentation for rules