Minor code cleanup.
Removed the ElementIterator.
Add some documentation.