Now can switch between json and csv with the change of a variable. Updated readme