added some clarifying comments to cache.c