tidy up code, use pointers to refer to the parameter species network