Added constructors. Fixed logic error in search.
Merging