Fixed bug where out_dir in config was ignored
Fixed crash from mis-named tags in JSON
Added better error reporting