Normalize qDebug() messages.
Check to see if ID exists before trying to delete.

Closes #1.