Using enum for cell state, some documentation comments