Updated

Kenya's Supreme Court says the execution of the nation's March presidential election wasn't perfect but that petitions to overturn the result did not prove President Uhuru Kenyatta was illegally elected.

The court announced its ruling in late March but on Tuesday released its 113-page written decision. The court ruling said that petitions by former Prime Minister Raila Odinga and civil rights activist Gladwell Otieno do not disclose "any profound irregularity in the management of the electoral process."

Kenyatta beat seven other presidential candidates with 50.07 percent of the vote. That slim margin over the needed 50 percent was challenged by Odinga — who got 43 percent — and civil society groups that complained of anomalies in the voting process.