change condition for detecting first mainline link
consolidate matlab and text
Merge branch 'first_mnl' into printout
Printing the data in different text files and checking CTM behaviour
CTM behaviour as a test