Catching of exceptions and documentation

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