Fixes doctype and markup issues

Adds missing doctype and addresses a couple of markup issues and inconsistencies.