adding script to make tables (and a bunch of other things, that I should have committed a while ago)