Renamed to generate.

Added more command-line options.
recent changes