add option to write generated xml from command line arguments. reinstate SIG CHLD block/unblock

Signed-off-by: Roy Storey <roy.storey@plantandfood.co.nz>