Catching RequestError
Fixing duplicate links
Fixing formatting and getting rid of old code