added delete functionality and some comments
removed unused imports