Working on addEntireDocument C API