fixed the file header comments added at the end in the wrong place