moved dataset functions to new dataset.R
make dataset() compatible with old/new configuration