small changes

move cell type to cell.go and fix style read bug