Minor changes to the code

Code now implicitly prints out the validation of the produced sequence