parallelized the link fetches

The link fetches were serial. So parallelized them
The base requests can be further parallelized.
Also formatted the code.