Added comment to explain the monster parser doctype regex, and fixed some edge cases