Printing to stdout and file output.

Write to stdout when file output format not specified, else just write to file without writing to stdout. Thus, `__repr__` in goo_result is no longer needed as it it will print to stdout even when a file output format is specified and it can get messy when output is large or bulk mode is used.