Add a Poisson solver using FFT's

Also fix a bug with the getgridspacing function