More meaningful options.
Read options and config for generate.

* Added -n option.
* Added default values for configuration.