Add changes to other examples re #6752

Work cannot be completed until ticket #6764 has been closed. Then the comments in the code from that ticket can be improved similarly.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>