1. They weren't wrong nationally. They just didn't get the state by state breakdown correct.
You have to remember that polls show a numerical outcome, not necessarily how it will filter through the various rules.
https://en.wikipedia.org/wiki/Nationwide_opinion_polling_for...
https://en.wikipedia.org/wiki/2016_United_States_presidentia...
2. Even those that were off were off by just a few percentage points. This is a 2 to 1 ratio.