Add delete_dllist function and add comments