build: fixing table and toctree generator

Signed-off-by: Sam Kleinman <samk@10gen.com>
build: making definition lists order correctly

Signed-off-by: Sam Kleinman <samk@10gen.com>
minor: removing test code
minor: removing debugging output