added function to deal with cases where HN doesn't generate an output (i.e. born-dead individuals)
severe mating bugfix