finished cleaning nullmodel_test.R
implemented NODF summary functions