Add an example to test and demonstrate this re #6755

also a small improvement in print out.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Enable multiple components to be specified by string array re #6755

Also added an example that uses this.

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