Arg parsing; new JSON structure
Splitting up megafunction
Modified chart app to use new data structure