docs: public synchronized void addFile(String filename, String filePath) {
          // fix this to check if duplicate name exists.
          int fileIndex = fileNameList.indexOf(filename);
          if (fileIndex == -1) {
              fileNameList.add(filename);
              filePathList.add(filePath);
          }
      }