Better formatting for docstrings in REPL

* fixed line-wrap issues
* fixed nested list issues