Rewrote the PDF tutorial to take into account the recent publication on GitHub.