Added "xml file directory"-functionality
Improved date encoding