Added possibility to export rules as xml file