Small refactoring
Fix: Run command prompt

When running command via "r" there was a problem in vimaw mode.
Whenever an application was lanched, vimaw automatically switched
into insert mode but visually was displaying it is in normal mode.
Now should be everything fixed.
Possibility to set logging level
dbg module renamed to 'logging'