finished searchADD. added functions for cleanup, printing, etc.