added file writer
Merge pull request #1 from toolbits/master

added file writer