Added support for reading feature values from JSON files. Changed feature_matrix field in config into a nested dict.