Added csv output for potentials