Added support for "enabled" flag so that we can disable the cache if needed...

Added support for "enabled" flag so that we can disable the cache if needed. Also, fixed the tests, updated package.json and made minor stylistic improvements to the code.