Added validation of XML-files against the schemas. Cleaned the template files.