Docstrings, minor interface tweaks, extra tests