Refactored and commented for the cache-related classes done, for now.