Added comments on how to test caching with example

Detailed comments on how to test the caching functionality with an
example in R