Added a log - still needs a bit of work, but should help with debugging, also fixed a dir creation bug in the pandoc plugin