Several fixes for the nearby article search algorithm + some more unit tests + some debug logs in the console (to be removed afterwards)