cleanup code a little. i18n -> i18nc. use system palette to get colors for diagnostic messages and #include explorer