Modify examples that use GCC

Fix to use generators.
Doc formatting fixes
Merge pull request #1019 from hagberg/doc-fixes

Doc fixes