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
minor: whitespace, removing prints
toc: fixing ordering problems
toc: fixing indent in definition lists