Added more options for tag and rule matching. Expanded file input for create_rules.