Added a file print at the end which records the average density at each point inside the cell.