Change sheet Write function to WriteHeader
Change example to conform to API