remove dead code
code cleanup
start to factor out document rendition into configuration modules