Fixed _features_for_segment to properly reshape incoming data.
Read file mode should be r so that data is not corrupted.