t.a.passes cleanup and docstrings