Many improvements to doc generator, some doc additions