partial progress
more fixes
refactor, bare-bones createFile, writeFile, closeFile support