The UN is urging all sides in Libya to avoid revenge attacks, as allegations emerge of abuses by rebels and Gaddafi loyalists. 

Rebels are slowly strengthening their hold on the country's capital Tripoli, as they move their headquarters there from the stronghold of Benghazi.

But there's stiff opposition from forces still loyal to Colonel Gaddafi's regime.