Changes to PDF layout.
Made PDF layout tweakable using style object, added comments.