More work on Documents API