ssh/session-func.c: Improve docstrings, remove extra comments