Updated documentation and revised docstrings [skip ci].