adding documents, improving client interface