Error handling and requests library added