Make the output path configurable and default to working dir instead
Add a docblock to getJSONConfig
Rename options to be a little clearer.