Changed function name from cacheLower to cacheContent
Removed not needed methods, reformatting and added better comments