Implemented several sanity checks
Simplified code to read in cache file
Updated implementation of HTTP update server