Added iterator interface
method for marking end of input
Updated readme