Create the doc engine