Complex sentence: The security problems had decreased during the UNTAG deployment and the elections had gone off better than expected and Namibia and South Africa had established formal diplomatic relations.
Split into simpler sentences: The security problems had decreased during the UNTAG deployment and the elections had gone off better than expected. Despite tensions, after the elections, the Namibian and South African governments had established formal diplomatic relations.