GUI more robust when the user wants to add or edit a team.

Also XML documents with teams information added for algorithmical tests.