I have addressed most of these comments through reorganization:
1. Each example starts with a "running the examples" section that tells where to
find the source code for the given example and how to run the example. This is
completed in C++ and Python, and will be done for Java before the next release.
2. In each section, I now describe the functions and the main body separately. I
believe this clarifies what was confusing before about where the code goes.
3. I use functions to avoid repetitive cut-and-paste code in the examples now
(someone else fixed this -- perhaps Rajith? -- before I did).
4. Channels are no longer used in the examples
I did not put the full source code in an appendix, opting instead to say where
the examples are installed. Best, I think, would be to have the full source code
online in a separate location.