Revised docstrings and refactored subset mapping.