add 3 flags to generate_examples. check the usage line for info