$length, custom cells improved, __item and __val refactored