docstrings and small fix for external restraints