read config from config.json
clean up config.json and README
retab for code style