Building of PDF docs.
Improved functional-style Python implementation for problem 6.