Add the Authorization header to apiGet too for consistency.
Whitespace tidy up and add some docblocks.