Handle addition and deletion of documents from the command line, closes #73