Add functions
Remove useless root node in ruleset file
Improve ruleset validation
Add "types" configuration option