just a few bits in index.rb
Merge pull request #12 from jsuich/refactoring

just a few bits in index.rb