doc generator improved