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

added file writer