HTML5 Compat - Markup Tidying

- Added basic HTML5 Compatibility (doctype, meta tag)
- Did some tidying up of the output of the markup
- Use braces with long markup output

fixes #5