Added function to print a table in a console command.