improved History class
fixed issue in Stream.eat

issue occurring when the first argument is not the same as stream.found
[Java] some tweaks