Added some more sample code to API docs