Additional documentation and doctests