Updated some of the example usages of the API.

I can imagine the samples can run to many pages, so we'll need a few web pages for those.