Iterators

Fixed iterators

Also added --private to newmodel nitdoc generation