Fixed tool loading errors.
Added config for max cache age.
Made caching configurable