Session cleanup + docstrings.