Add check for callbackID in client
add debug log
small cleanup in example client