added support for multiple document deletion, fixed a a bug when wrong count of documents was returned