Refactored to not use RuleResolver
Fixed spec
Corrected docs and example