Add construct function in dox file, add missing destruct in pkg file, update ToDoxHook.lua.