added an onDelete callback
Merge pull request #13 from Pita/improvements_getValues_onDelete

Added an onDelete callback