Futher testing code and minor changes. Adding the little script used to generate the sample.