Added option to output to stdout

I've added an option to output to stdout.