Bug fixes on feature extraction and added automation script