remove unused functions, cleanup docstrings