Fixing memory issue when logs get backed up
Adding more tests
Merge pull request #42 from wpreul/master

Fixing memory issue when logs get backed up