fixed removing not existing documents in groups (fixes #28, 34)
removed debug
Merge remote-tracking branch 'upstream/master'