Extracts links from reddit
Tidied up layout and code