fix bug that adds duplicate entities
some styling to make things pretty
force flags, rigs and companies to be aligned by adding dud relations and entities