Added support for writing output to file (close #90)