added indexFill and simplify index
Merge pull request #19 from hycis/indexFill

added indexFill and simplify index