improve an error message
detect/raise exception on unclosed tags
improve message formatting in a few ParseErrors