rename catdoc
implement plain and html docs
add some exports