Added checks for valid condition, temp, imgcode from source before assigning in make_new_cachedata()
Updated htaccess
TODO comments
Use nicer condition phrases; updated constants
Updated saved data to save as json instead of as a txt file; create cache file if one doesn't exist yet; other code cleanup