some code cleanup
showinglayoutinfo in km, runninglayout in km becomes set
make linter happy
privitize functions
happy linter again