Retrieve docs

Closes #3 

Hey @devcritter if you are able to, a review would be good.
Aah ok, thanks for the explanation @rcrichton. It makes more sense to me now. Afraid I haven't gotten any better ideas at this stage, so if you're happy with this solution for now then I think it's alright.