two typos
editfile: catch more errors while "parsing"
edit: apply changes