Added writeToFolder functionality
Merge pull request #56 from dnna/master

Add writeToFolder functionality