added documents/show.erb and refactored a couple of methods in my document.rb