tidy up code, use pointers to refer to the parameter species network
Merge branch 'dev' into doc