Adding limited caching on every page load. Minor bug fixes

fixes #19