IIRC there was a big big controversy about whether to finally include it or not in the canon of accepted books. I'm pretty sure it is documented somewhere, all the back and forth of the debate.
Yes, it was definitely written under the influence of....something!