Error checking, updated json_to_csv to use munger_common framework