Typo fixes, clean up example code and output.