Generated commands look right

I managed to create a matching output file to an input file.
I have since adapted the script to try and write to the printer.
uploading to git for testing.