This commit improves header parsing
This commit adds passing the filename to script as a parameter