Added legend and tests for cellular automata methods.