Code and doc cleanup. Lots more code samples.