Refactoring remaining files: output loop
Final refactoring: all with the same structure. Also connection matrix bug removed
Last commit didn't run. This one does. Simple corrections
Isolating simulation and ploting from each other and making them callable through functions
Extracting some parameters so that they start being given from the the scope of the simulate function