Add docstrings to session.js
Add docstrings to kernel.js