initial version of tables
finished the table stuff
some more work on tables