Capture API error codes and throw exception.  Handle transpagelist better
Corrected name values
Code tidy
Remove json setting
Removed check for historic slots.  Fixed graph call.