Fixes error with source header output
Adds output to file

Name of the file without the extension is used as the name for the
source header data structure