public static void main(String[] args) {
        if (args.length != 2) {
            System.out.println("There are not enough parameters: " + args.length);
            return;
        }

        File folder = new File(args[0]);
        if (!folder.isDirectory()) {
            System.out.println("First parameter is not path to the directory: " + args[0]);
        }

        indexDirectory(args[1], folder, new Indexer(new CoordinateIndex()));
    }