Add indexing and subcommands `index` & `solve`