add search function (Works)
directory pretty much done in terms of functionality