adding ttl for documents

Added ttl for documents