The best heroes are flawed. The simplest explanation for this is that we can identified with such a person. Sure, there are plenty of deep literary nuances that a reader with an analytical mind can probe and ponder while reading about protagonists with obvious shortcomings. That is fine. For most of us, we read ourselves …
