modified edit

- changed edit so that it will terminate if either delete or add fail
- it will also throw different exceptions depending on which exception
was thrown from add or delete
- else it will throw a default exception