added a delete funtion to the linked lists and made a small correction