Major changes to getFlows, now it appends or replaces flows, and checks if the flow stopped to remove it from the flowlist. Still needs to be verified if is working properly
Also, the model of calculateArrivalRate should be checked