API - Examples

Substantial work on the API. Fixed numerous bugs. Started creating the
comprehensive examples, which are quite revealing of the missing
features and things that are just totally broken.