First version of XML reader
Refactoring XML functionality into own class