wrote tests for delete and improved the documentation