change directory structure, add dubug-wrapper

debug wrapper, an universal interface of debug code. just inherit from
it and implement "func" virtual function