Call the parent initialize()

otherwise saveable features don't work.
Refactor writeFile and readFile to use isBinary better