search functinoality added

need a better algorithm for searches.