The system is fundamentally flawed, though better than most of the world. It is my understanding that the electoral college is not obligated to follow the popular vote, though they usually do.