setupDataset function

Given specific contents of env add other dataset related variables.