script to do the feature extraction