debugged and created tests for feature extraction.