Updated table creation and added a port flag to the command line arguments