updated templates and tinyxml