Prevent file erasing of file contents and create backup
Removed the debug print and use &= for bool
Merge pull request #7 from jmcs/master

Prevent file erasing of file contents and create backup