structural change

rearranged structure so the analysis/reporting only happens when no
output file is specified