add iota primitive. nicer tests.
fix insertr
more primitives
move code around