Adds support for Content-Type of application/json; charset=utf-8 in addition to application/json
Return exit code when -d option not supplied
Better organize execution flow