TODO: search querying & process multiple files into an index and write to file.
Clean up the code / optimize