Added Error Handling

Incorporated the OpenCL Exception Codes into an Error Handling Function Call