Added search and printContent method

To search for a given word and print out strings containing the word