Add __str__ and __repr__ to BaseDocument and Document