Including url + id into relevant link output

Some more comments and minor changes to the algorithm.