convert to unix newlines, add header and shebang