Fix depr. warnings.
Update documentation. [skip ci]