Merge pull request #24 from skatscher/master

pdf creation by ERB template
Reformats code by Rubymine
Reformats code by Rubymine (2)
Adds capybara test for pdf generation
Fixes Travis-CI and some style issues