refactored csv to json logic into a function
Merge pull request #7 from bengarvey/csv_to_json_function

refactored csv to json logic into a method