Added head and header into the file