Add ability to write results to file

"stdout" option now can be a path to file where write results.