Output to file edits

Some edits for your review...

* Changed `json.dump(output, outfile)` to `outfile.write(output);`. Calling json.dump() a second time with the json string was escaping the string (and shuffled some things around).
* Added a `-c | --console` option to explicitly output to console.  So now, without passing any options to the script the default behavior writes to the file (your original idea, which seems more convenient).

Thoughts?