Update based on code review feedback
* Change to #!/bin/bash
* Change to using a here-doc rather than a here-string