switched to doctype xml. fixed some missing tags

switched to use doctype xml as it enforces better coding practices (though the app doesn't need to use xml doctype, it works this way, not the other way around).

fixed some missing close tags (flagged due to xml doctype usage).