No longer errors when opening a new file. Added default html tag to
begin document since parser doesn't like blank documents.