Hi Harry,
And, DEFINITELY have a look at my 'Batch DeBayer" PJSR script. Not for what it does though, look at it for the TONS of comments that I added to it so that 'I' actually knew what the heck was going on!
In other words, start with one of the very simple scripts, and then 'search' within my script for similar code - if you can't figure out what is going on. It may just be that I have used a similar piece of code and I may then have added a bunch of comments to try and explain what is happening.
Heck, if you can handle ZX81 Basic, or Spectrum Basic, you can handle PJSR. The principles ARE very much the same - just that some of the rules have changed.
And, your ZX81 is ALREADY worth good money now, but not as much as a ZX80. I have a Sinclair Scientific calculator - home built - c. 1973/74 vintage and those are really valuable nowadays, along with my home-built Sinclair 'Black Watch'. I wish I had kept my ZX80, all the peripherals for my ZX81, and my ZX Spectrum, with all of its bits-n-pieces.
Cheers,