Allow for an incomplete file to be parsed

It should be OK to parse an incomplete file, but not write it. Maybe you
want to parse and fix it?
Document exceptions