Moved settings and templates to XML files