fixed resizing bug which was introduced during rewrite and the mixing of global and just predefined variables
added the empty command hook function which does nothing exept redrawing the screen
Revert "added the empty command hook function which does nothing exept redrawing the screen"

This reverts commit 848436d1d437580afbb8420e5f4bdcbb48ce5790.
added NOOP (just redraw) for empty lines and for missing commands
readded error messaging fixed screen redrawing, done after every command except help