added method to regenerate the cache
added method to regenerate the cache
modified __main__ to calculate all the data