PDF build fixes.

Fixes some errors on PDF generation with Sphinx.
PDF trainining doc fixes.

Page breaks to fix PDF generation.
Merge pull request #45 from alediator/pdf_fixes

Pdf fixes