Add example code, a delegate that makes per
element different rendering easier, and separate
existing examples into the __main__ so the module
can be run to show these examples.