Clean up new file script

Adds include guards, include statement from C, eliminate trailing whitespace.
Fix typo in variable name
File analysis no longer hardcoded to PCM files
Ability to analyze arbitrary output filename

Paves the way for analysis of all supported output file types.