Added Delete Functionality

Added delete functionality.
Addressed a few errors regarding NullPointers for Edit.