additional work on printing the table, cleaning up some sysouts