Allow to `remove` a document

Make `remove` accept a document (which might have been previously fetched).
remove: corrected assignments order
Merge pull request #1 from shimaore/patch-1

Allow to `remove` a document