Added catching of exception if the get of the URL fails. Also some documentation