remove definedSorts
remove intialized flag
fix some warnings
move cell data structures state to Cells