Fixed some things.

Note to self: better research.
Some style edits.
Tested apikey auth, works.