Cleaned up code to center cell values
Fixed bug that reversed rows and columns