Add more code examples, clean up docs.