use sample config.json
accept json string to construct Centroid, add static FromFile method, ...