rename files and create a header for func defs