Add of a bunch of debug and error log; syso removed