doc generator improved with indexes