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 xhtml/xml doctype, it works this way for both enforced xml and html, fails if defined as html).

fixed some missing close tags (flagged due to xml doctype usage).