testcache.c is now unit test for cache. Documentations added for cache functions in cache.h