Put file write into a block
Add cleanup feature
New rake task for running tests
Added stuff to README