Added more to the config. Cache now uses config to find where it needs to put things, and where the xml is. Also added comments to code for handin