Added some basic error handling and got the httpUrlConnection portion functioning properly