added getTotal functions and fixed option passing in findByIndex
1.6.1