Merge pull request #6 from jribnik/master

Check balancer state before removing documents
Merge remote-tracking branch 'upstream/master'