Thanks Nick. I now have this compiling at least. Now to test...
There seems to be a bug in "Add file" . I'll have to look into that and open another thread.
I did a copy paste from Andy's code on the web page and pasted into nano editor. I don't see much likelihood of it missing the line feeds on the latter half of that copy.
More likely a bug in IDE when it imports longer files.