Print rank numbers besides results
Use my resume for the second example
Remove unused pretty printer
Factor out pdf support
Better handling of dictionary
Add comments