update file headers and normalize whitespaces