added comments
added dynamic delete