normalize whitespaces and update license headers