various fixing from following the codelab step by step [on Linux]

as noted above, running the latest version of the generator produces different output, so here, stressing the point of replacing the entire content of the file.