add docstrings, remove old functions