Updated code that checks for existence of contacts, exp factors, designs and protocols