delete feature implemented, added comments with test cases