What i dont understand is how did the Tories get in if most of the country hate them?
Basically, by cheating.
The "first past the post" voting system used in the UK is deeply flawed. Say you have a constituency of 1000 voters, with candidate A who is standing on a platform of beheading every kitten in the land; candidate B who opposes the beheading of kittens but believes that pubs should tart serving beer in litres rather than pints; and candidate C who also opposes the beheading of kittens but believes that 568 is a perfectly sensible number of millilitres for a beer glass. Now A gets 350 votes, B gets 330 votes and C gets 320 votes. Even though the majority of the voters are aghast at the prospect, the ailurophobes win.
If the election had been conducted using the Single Transferrable Vote, it is likely that more of C's supporters would have given their second preference to B than A, on the basis that they would rather suffer the indignity of beer in litres than beheading kittens. C being the weakest candidate is eliminated and their votes are redistributed according to second preferences. Some won't have expressed a second preference, so their ballot papers are placed in a discard pile. As soon as the 501st ballot paper lands on B's pile, they are mathematically certain to have won the election, however the remaining papers be marked, and so B is duly elected.
Even the constituency system is somewhat flawed. Suppose there are just three constituencies, each with 1000 voters. Constituencies 1 and 2 return party A, even although the majority of those constituents voted for B or C. Constituency 3 returns party C by a near-landslide. Party A has two MPs, party C has only one MP. Yet if you added up all the votes, the overall majority of voters might well have voted for C (who already has over 900 votes from constituency 3 alone, and needs only 1001 votes to be certain of winning). The paradox here is that voter sentiment is not evenly distributed among constituencies; rather, the voters for C are concentrated into one constituency, where their votes go towards someone already certain to win that seat. (And just to make it interesting, it's entirely possible, if we were using transferrable votes within constituencies, that B might have got in; even although C would have been elected by disregarding constituencies and using transferrable voting on a nationwide count. Try making a spreadsheet in LibreOffice Calc and plugging in your own figures.)
Psephology is
difficult.