added documents/index.erb and corrected the syntax for the .order('key, DESC') in author.rb and document.rb