Revert "Revert "Remove debug output, fix some bugs and add command prompt""

This reverts commit 5a90404af38e9e1f938927392e212aa881715bfc.
Revert "Fix checkstyle in Table classes"

This reverts commit 2a971d68b543275114f6f6dadc42ac39cf3b6df6.