split formmating chain out
added doc draft
slightly reword the doc in util
fixed __all__ in util
renamed docs/basis.rst
added doctest stuff
added patch.rst
added the draft of query