Adds rules documentation.