added generate_config
Merge pull request #3 from bduggan/autoconfig

added generate_config