Changed the structure of example.xml to better ressemble actual config files and made some changes in the sources to work with it.