Add more docstrings/comments to session object

No functional changes.