Refactored to have searchFile method to search for the content of each
file
Fixed searchFile method