Final Commit. Pushing minor changes in cache.c and the TRP generation script