Got a stable version of document generation going for the lynx project all integrated in one exe with command line parameters. Still calling mogrify.exe in between to fix up the images.