adding the capability to run with a variable number of particles and density data points. I should have done this to begin with.