Search function now working. Added search_results write-to file