Add rendering into output.txt

Renders into a nicely formatted file.