added extract_feature, remove_white space function