added check for key's existence, made comma-separation of author first/lastname list conditional depending on presence of both