copy the analysis part from the legacy InspectorMike into the DataAnalysis routine
remove global variables from DataAnalysis, introduce pars parameter