introduced private submodule _tools
_tools.py moved _tools/_doc.py
moved class _Chain from [mcprerun/markov_chain.py] to [_tools/_chain.py]

introduced class _hist in [_tools/_chain.py] for saving the history
of _chain instances