Refactored pdf output updates in cli.rb, added dependency to gemspec file