added documentation for feature extraction