Added a function to search for a term in files