refactored csv to json conversion now uses itertools where possible
rebase
merge