Fix bug causing >256 cell error with wrong cell coloring, add main function to c3po_cmd