Added header from header.txt template and edited script to work with config file.