Doc updates.
Improved doc generation
Added missing attribs to debug template