Code improvements

Fixed memory leak in the installer
Added diagnostics info to configuration app