added indexing for vector maps
fixed x,y gradients exchange
compute deflections from potential, save planes in FITS