added outpu file option
Merge pull request #8 from jdart/master

added output file option