Brett's latest + Tom's render_dotfile rewrite

This has your latest + the fix I made to `render_dotfile`. Try pressing the green button if it looks good :)