All you really need to do is look at the way other countries do things. Australia being a good example of almost real democracy and having a political & electoral system that protects against extremism. The best of which is that you cannot form government without the support of 50 % of electorate.