Fixed a lot of stuff, cleaned up code and made some of the parameters to createTable optional. We can now create tables! :D