Fix bug in g application with multiple energies
Fix bug in g application with multiple energies

Move the initialization of variables inside the loop. Previously, when
multiple energies were used, the correlated uncertainties on g were
incorrect. Also improve comments and output format.

marenaud/EGSnrc,MartinMartinov/EGSnrc,crcrewso/EGSnrc,marenaud/EGSnrc,nrc-cnrc/EGSnrc,ftessier/EGSnrc,MartinMartinov/EGSnrc,mchamberland/EGSnrc,marenaud/EGSnrc,nrc-cnrc/EGSnrc,marenaud/EGSnrc,crcrewso/EGSnrc,ftessier/EGSnrc,crcrewso/EGSnrc,nrc-cnrc/EGSnrc,mchamberland/EGSnrc,mchamberland/EGSnrc,MartinMartinov/EGSnrc,MartinMartinov/EGSnrc,marenaud/EGSnrc,nrc-cnrc/EGSnrc,crcrewso/EGSnrc,mchamberland/EGSnrc,MartinMartinov/EGSnrc,ftessier/EGSnrc,nrc-cnrc/EGSnrc,marenaud/EGSnrc,ftessier/EGSnrc,mchamberland/EGSnrc,ftessier/EGSnrc,ftessier/EGSnrc,mchamberland/EGSnrc,crcrewso/EGSnrc