Documentation cleanup in the comments
Added basic doctest