Adding commenting to MaskRuleEngine, as well as fixed bugs within the class.