added documentation for cache. Closes #80.