remove empty files on open
don't unlink on close
better test
Merge pull request #33 from kesla/remove-empty-on-open

Remove empty on open