moving to PSR-2 style coding standard, added logging mechanims to capture guzzle responses, added some basic exception handling.