Add test for functions without docstrings
Improve docstring handling and create pwd method in Session