Working PDF creation
Fixed numerous formatting errors and made a few tweaks