add docs for custom rules and formatters