Make changes recommended by Gesner re #7617

Corrected comments, use ManditoryValidator and use AutoPtr.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Reduce arguments and improve efficiency re #7617

as suggested by Gesner Passos

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