added genconfig.py and updated README.md