reworked code to use delete methods in separate classes
fixed error printing in button
renamed delete function
reformatted and updated  comments