got rid of redundant docstrings, refactored some sorts