fixed a few bugs to ensure cache file writes. Started data processing of files.