added extract_extended_features function and updated split_test_and_training_data