Adding queries on index and fixing limit bug.
Merge pull request #62 from finkel/master

Adding queries on index and fixing limit bug.