Finished the script to generate a test program, with a few exceptions left as comments in the file.