fix bug in ncdump call, now returns a list (ugly)
reoreder the output and input values.