Some reformatting. Breakout url reading function into it's own class.