Include stack trace when reporting errors
ijson uses Decimal rather than floats - this is a problem when we want to convert it back to json, so cast to float
Add an option exit code for stats operations