rework how examples are generated.

Added code examples for flows and settings.