Completed transfer from generators to iterators.
Implemented Fon-Neiman method.
Some cleaning up.