Sanitize affiliations so they are formatted properly, adjust styles