Fixed memory problem, still need to check if the system works and add the parts for the first species printing and average_mass fields a.s.o.