Add heredoc

Change the bunch of echoes for a heredoc. It would work better with Actual Hard Tabs(tm), but feel free to adapt.