added the option to make a nice table