make doctest now works and all doctests pass