added forEach on cursor. documentated some methods. made 'id' consistent for object uniqueness.