The best example is probably the "comix2" program in script. I'll write
the docs!
