Further optimised the generation of documentation.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Corrected the documentation in cases where an undocumented member is followed by a documented one.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>