Added make-doctype
Fixed indent hint
Fixed doctype handling
Added print statement on error that shows current index.
Fixed name matcher.