DONE - added comments and fixed delete bug