mtruong
committed
on 24 Jan 06
added some comments
refactored code so that the iterator is only when needed