Fix some type errors in the tutorial.
Add sections to tutorial about code generation.
Explain ReaderT usage in Resource.
Add section about running documentation generation.