Text doc generator