first stab at autogenerating documentation

Far from complete, but a reasonable first step.