more debug info when building in debug mode
avoiding using deleteLater() when not necessary
comments fixes