fourier debugged - phase calc now correct
fourier debugged - phase calc now correct
working version with multiple elements in PO mode