Some fixes to docs and example code.