Fixed getMatchingRule which appeared in use with additional blocks.  Closes #16.