Thanks Alain, glad I was doing something OK.
I like the new method, I was never very happy with all the _underscore stuff going on with the other method so I'll stick with it.
(Perhaps there is a need for a new template library in this forum somewhere for the new syntax).

I'll have a look at the tool you pointed out, thanks. I got to say I'm having information overload with this particular project, I've changed PIC's twice now from my original choice, and it caused headaches both times. Hoping to settle down to writing useful code real soon.
Cheers,
Martin