Fixed generate keyword argument in example code

Replaced output with outfile.