search function working

I fixed a few bugs within the search function. the search now works fine
returning the correct results.. I just need to now allow it to return
better data and style the search results.