Rewrote get_first_empty_address() and added logic to prevent failure if there is an undefined entry in the aldb.  Modified add_link so that it doesn't create undefined aldb entries.