fix indexStatus and indexWait, fixes #29
Merge pull request #30 from codedmart/indexStatus

fix indexStatus and indexWait, fixes #29