Made the changes on methods comments according to requests,
Implement  better error handling mechanism. Now CtctExceotion is thrown even if the call to an endpoint is not successful.