Added skeletons of functions for iterator in iterator.[ch].
Filled out skeletons, except for the real meat.
first draft.