Refactoring. Input files names revised. 'main()' is now 'makePdf()'.