Worked a bit more on the GUI, now the buttons work fine and add agents and the agents don't crash the model but keep running. Still need to focus a bit on charting