Fixed rule extraction, added ruleSet generation
Added search of duplicate rules