added writefile for non memeory stream
Merge branch 'master' of github.com:markthor/RentIt