findbyuid and delete

added a function to find indexOf based on uid and another function that
uses it and deletes the object at said indexOf...both take a specific
uid as a string.
added string check