Switched to Text::Template for output flexibility
Fixed residual issues in reporting and added command line 'final summary' output