Added clearCache() method.
Error caching ended up being a bad idea, might rethink this later.
Improved logging.