Caching of data implemented

Implemented caching of data into .json format. Script should now check
age of data, and if the age of the data is less than the period (set to
be one day), then it will download new data. Should not need to manually
start downloading now- just call get_data()