Refactor parser.new, returns list
Refactor add_rule, set_rule
Unit tests adapted to new configuration