fixes #26. fixes #8
Merge pull request #27 from wayfare/polish/fileoperations

fixes #26. fixes #8