What happened in Algeria as far as I understand it: The generals started a bit of democratization. The people voted for FIS in the first round of elections. The generals then ended the democratization project.
Now, after a more than a decade of war and hundreds of thousands of deaths, Algeria had elections, that were considered not so bad. Not perfect democracy, but more free and a fair than in many other Arab countries.