Style changes and documentation for cache