Fixed rule matching logic

A rule is matched now only when it is used, not merely when its criteria
match. Also, fixed a small formatting issue in README.