Bugfix for address book

the remove function was almost entirely non-functioning, and the search function had a bug where it would give whatever the result of the first search was for all subsequent searches.