added mocha testing framework
export Iterator for use elsewhere
Merge branch 'iterator'