Fixed problem with limit
Fixed class inheritance
Moved inserting data into Memcached into a function
Moved inserting data into Memcached into a function