Added options to get function. A bit of code tidying.

I needed to pass custom headers through in a `get()` call so I've added the ability to do that, and tidied up the code a little bit.