Moving dtable installation into dtable.c and improving it a bit.