Misc cleanup, mostly logging code
Add screen to control debug levels. Will make it easier to access later.