features function

Extract features from a dataset