made point density variable

Changed the points per loop to be a variable instead of a constant for
easy adjusting of the fidelity of the simulation