Added doc strings/comments.

Enhanced API Error exception to give digest of keys of problematic object
for debugging purposes.