some docstring and dependency cleanup

up to line 279