doc typo
improved patching for delim in writeFile, fixed style
changed editFile to use patch