fixed an issue where we were not reading the file contents first before writing pieces
Merge branch 'master' of https://github.com/jeffddrake/pifi