Made the "Main" example more easier to undertand, and added some additional documentation on caching