Adds ranking shell, organizes document.rb