rowLapply, setAttribute, todo and cleanups