add table creation to setup
add some simple docs
misc reformat
more fixes and testing