properly centered the stats information using a table
added basic error handling