Fixed a bug that made nodiv_data fail
edited subsample functions so they reduce the input objects to data object, even if the argument is a result object (to avoid spurious results)