public static Config readFile(String path) {
	  Config result = new Config();
	  try {
      FileReader fr = new FileReader(path);
      BufferedReader br = new BufferedReader(null);
      String line = br.readLine();
      KeyValue kv = null;
      while(line != null) {
        kv = KeyValueFactory.fromString(line);
        result.lines.add(kv);
      }
    } catch (FileNotFoundException e) {
      logger.error(e);
    } catch (IOException e) {
      logger.error(e);
    }
	  
	  return result;
	}