editted finite_difference to write converge data out to a csv file