fix arguments for search to take a string.
added functionality to listener.
fixed white space.