Moved around where the arrays for the mass flow rate diagram are defined. Added mas commenting.