Cgi

All of the `Fatal`'s in this function could instead return the error. That would make `WriteSheet` more library-like and reusable. `log.Fatal` calls `os.Exit()` which generally should be the responsibility of `main` or as a last resort when the whole world is broken.