docstrings and housekeeping.