Initial test and implementation for outputter
UPdate to use generic collection iterator
Use internal Java8 iterator.