Useless code and docstring cleanup