Fixes. Typos and Exceptions not defined.
-defined APIConnectionError
-fixed general_api_error call line 360
-fixed raise exception line 365