css cleanup
undefined, not null
prevent double join. fix affiliation typo
add logger
Adds debug logging.