add code examples to the home page. adds API method to retrieve count of a single page