Remove console.dir() call on writeFile

It keeps continuosly logging and object to stdout  . Could it be replaced by a call to debug() from the [debug package](https://www.npmjs.org/package/debug) ?