added more iterator functions and comments