import.R - improved functions to allow choice of type of NODF (whole-matrix, rows, columns)