add config.py, modify config.xml and main.py