extract_rules_info function

Extract Rules Info