better error msg in Dataset.take
added a few transformation to dataset: 'mean', 'var', 'std', 'median'