Created new file: main_analyser only for analysis
improving main_analyser (what to do with SPWs going out of the trace?)