create Named class
slight modification to docs
fix(?) random doctest failures