use setup.cfg for readme
wip: output figures
force input output spec if using pandoc attrs
remove code_block argument

I've never actually used it from the command line.
update doc
tidy up precode arg
refactor to library and main
tidy
tidy indenting