Search and Delete Function

Already working

Minor bugs exist.