slight improvement to code generator

improved the test code generator slightly. added a commented out
function which saved the resulting data to a txt file, and added some
comments explaining how to alter the details and or quantity of the code
generated.