fixes sometimes a criteria should be matched later
more comments and removed debug stuff
more comments
remove leftover stuff
Merge pull request #157 from williampma/RuleEngineFix

Rule engine fix