Added functionality to set styles of cells; minor changes