New tish command and some minor modifications

- Added debug command for tish which shall replace most of debug
  modifications to init.c
- Fixed some warnings