Bug fix and added search.

* Bug Fix.
* Added 'search' to perform search operations on the specified key.