added error catches, rm error causing file, added search strings