added a swapaxes method, useful to set a dimension at the first place
cleaned up io.nc a little