added the ability to create pdfs of various sizes, added some comments