fix stupid memory leak bug
debug-print=lvl + a stab at cross entropy