Menuitem "Enable Debug Logging": fixed initial state and added state refresh. Fixes Issue #16