Modifications to update cache.ini when local data is up to date

Created function to write the cache.ini file
Replaced existing cache.ini write code with new function
Added new function to be called when download is skipped as file is up to date
Fixes #3