Updated documentation. Made cache size configurable