Still a little buggy but much better than original attempt. Search method works perfectly when modifying/deleting but exits program after it finishes when called on its own. Good refactor sesh.