change doctype to HTML5 and fix some validation issues, see #16